{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=281
  Verdict: Accepted
}
type point = record
  x,y:double;
end;
var a1,b1,c1,a2,b2,c2:longint; p1,p2,p3,p4,r:point;
function Subtract(AVec1, AVec2 : Point) : Point; 
begin 
  Result.X := AVec1.X - AVec2.X; 
  Result.Y := AVec1.Y - AVec2.Y; 
end;
function gety(x:double; a,b,c:longint):double;
begin
result:=-(a*x+c)/b;
end;
function LineIntersect(LineAP1, LineAP2, LineBP1, LineBP2 : Point) : point;
Var
  LDetLineA, LDetLineB, LDetDivInv : double;
  LDiffLA, LDiffLB : Point;
begin
  LDetLineA := LineAP1.X*LineAP2.Y - LineAP1.Y*LineAP2.X;
  LDetLineB := LineBP1.X*LineBP2.Y - LineBP1.Y*LineBP2.X;
 
  LDiffLA := Subtract(LineAP1, LineAP2);
  LDiffLB := Subtract(LineBP1, LineBP2);
 
  LDetDivInv := 1 / ((LDiffLA.X*LDiffLB.Y) - (LDiffLA.Y*LDiffLB.X));
 
  Result.X := ((LDetLineA*LDiffLB.X) - (LDiffLA.X*LDetLineB)) * LDetDivInv;
  Result.Y := ((LDetLineA*LDiffLB.Y) - (LDiffLA.Y*LDetLineB)) * LDetDivInv;
end;
begin
assign(input,'input.txt');
assign(output,'output.txt');
reset(input);
rewrite(output);
read(a1,b1,c1,a2,b2,c2);
if b1<>0 then begin
  p1.x:=0;
  p1.y:=gety(p1.x,a1,b1,c1);
  p2.x:=100;
  p2.y:=gety(p2.x,a1,b1,c1);
end else begin
  p1.x:=-c1/a1;
  p2.x:=p1.x;
  p1.y:=0;
  p2.y:=100;
end;
if b2<>0 then begin
  p3.x:=0;
  p3.y:=gety(p3.x,a2,b2,c2);
  p4.x:=100;
  p4.y:=gety(p4.x,a2,b2,c2);
end else begin
  p3.x:=-c2/a2;
  p4.x:=p3.x;
  p3.y:=0;
  p3.y:=100;
end;
r:=LineIntersect(p1,p2,p3,p4);
writeln(r.x:0:6,' ',r.y:0:6);
end.